package com.changgou.search.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: wzw
 * MQ监听消息并生成静态页。
 * @Date: 2020/12/19 12:43
 * @version: 1.8
 */
@Component
public class SearchListener {

    @RabbitListener(queues = {"search-queue"})
    public void index(String id) {
        System.out.println("search_id = " + id);
    }

}
